import React from 'react'
import ReactDOM from 'react-dom'

import { Router } from 'react-router-dom'
import history from '@/utils/history'

import 'antd/dist/antd.css'

import { ConfigProvider } from 'antd'
import 'moment/locale/zh-cn'                 
import locale from 'antd/lib/locale/zh_CN'    

import App from './App'

ReactDOM.render(
  <ConfigProvider locale={locale}>  
  <Router history={history}>
    <App />
  </Router>
  </ConfigProvider>
  ,
  document.getElementById('root')
)
